<?php

namespace App\Events;

use App\Models\GoodsOrder;
use App\Models\GoodsOrderDetail;
use App\Models\User;
use Illuminate\Broadcasting\InteractsWithSockets;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class OrderPaymentEvent
{
    use Dispatchable, InteractsWithSockets, SerializesModels;

    public GoodsOrder $goodsOrder;
    public GoodsOrderDetail $goodsOrderDetail;
    public User $user;
    /**
     * Create a new event instance.
     *
     * @return void
     */
    public function __construct(GoodsOrder $goodsOrder,GoodsOrderDetail $goodsOrderDetail, User $user)
    {
        $this->goodsOrder = $goodsOrder;
        $this->goodsOrderDetail = $goodsOrderDetail;
        $this->user = $user;
    }
}
